<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: serial.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('db/d11/serial_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">serial.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> Name        : serial.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Author      : uCXpresso</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Version     : v1.0.2</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> Date        : 2014/3/18</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> Copyright   : Copyright (C) www.embeda.com.tw</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> Description : serial stream class</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">                                 History</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+-------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> DATE     | VERSION |   DESCRIPTIONS                             |  By</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+-------------</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> 2014/1/1   v1.0.0  First Edition for nano11Uxx                     Jason</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> 2014/2/28  v1.0.1  Add parameter in onLineStatus() member.         Jason</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">                    Rename settings() to enable()</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">                    Add &quot;pull up&quot; function on TXD, RXD pins.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> 2014/3/18  v1.0.2  Add semaphore for TX/RX fifo control.           Jason</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef SERIAL_H_</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SERIAL_H_</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;class/stream.h&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;class/pin.h&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;utils/fifo.h&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;class/semaphore.h&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define DEF_UART_BAUDRATE   9600</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../d8/d1d/class_c_serial.html">CSerial</a>: <span class="keyword">public</span> <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40">   41</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a77e567bbd57497e51b0161ed1cd855a4">   42</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a77e567bbd57497e51b0161ed1cd855a4">UART_PARITY_NONE</a>    = 4,            </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40aa157a4ef710e04651e3aaf61a4d96ad9">   43</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40aa157a4ef710e04651e3aaf61a4d96ad9">UART_PARITY_ODD</a>     = 0,            </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a4b7452e8ef848287eca86b7ea4411e65">   44</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a4b7452e8ef848287eca86b7ea4411e65">UART_PARITY_EVEN</a>    = 1,            </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a20c9bc3b3fa95b78898159cd2680e007">   45</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a20c9bc3b3fa95b78898159cd2680e007">UART_PARITY_SP_1</a>    = 2,            </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a660aab6ba15f9c94cc9963ff226a77eb">   46</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a660aab6ba15f9c94cc9963ff226a77eb">UART_PARITY_SP_0</a>    = 3             </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    } <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40">UART_PARITY_T</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3">   52</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a7ac317a766becd83f58a2daa007fed1e">   53</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a7ac317a766becd83f58a2daa007fed1e">UART_DATABIT_5</a>      = 0,            </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a6c31f7e06c7a6779b6d72d37aba52fb1">   54</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a6c31f7e06c7a6779b6d72d37aba52fb1">UART_DATABIT_6</a>,                     </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3abf533a46435efaddb8e38b9b9fe53eff">   55</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3abf533a46435efaddb8e38b9b9fe53eff">UART_DATABIT_7</a>,                     </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a196b716ca31d23301c1059b53ac35f25">   56</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a196b716ca31d23301c1059b53ac35f25">UART_DATABIT_8</a>                      </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    } <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3">UART_DATABIT_T</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04b">   62</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04ba6351eeac6c2e865ed9019323e2491907">   63</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04ba6351eeac6c2e865ed9019323e2491907">UART_STOPBIT_1</a>      = (0),          </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04bafe7ff299f68959471436234643298e71">   64</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04bafe7ff299f68959471436234643298e71">UART_STOPBIT_2</a>                      </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    } <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04b">UART_STOPBIT_T</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1">   71</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1aec8c4b69719ee6b1dc43cf6ccdd999de">   72</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1aec8c4b69719ee6b1dc43cf6ccdd999de">UART_FIFO_TRGLEV0</a> = 0,  </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a2d29eb800e28d845f00b9fd5df1b955c">   73</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a2d29eb800e28d845f00b9fd5df1b955c">UART_FIFO_TRGLEV1</a>,      </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a3ca31e41f3d74e387b0ff625a927bcf4">   74</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a3ca31e41f3d74e387b0ff625a927bcf4">UART_FIFO_TRGLEV2</a>,      </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a6893ab299c8d6be2e17efb39cd05e1a1">   75</a></span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a6893ab299c8d6be2e17efb39cd05e1a1">UART_FIFO_TRGLEV3</a>       </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    } <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1">UART_FITO_LEVEL_T</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="../../d8/d1d/class_c_serial.html#ad528b7355f527eabc415f6a8017745f4">CSerial</a>(<span class="keywordtype">size_t</span> fifo_size=32);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d8/d1d/class_c_serial.html#aff7c822bada51065ad52542fb9515be6">enable</a>(uint32_t baudrate,</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                          <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40">UART_PARITY_T</a> parity = <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a77e567bbd57497e51b0161ed1cd855a4">UART_PARITY_NONE</a>,</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                          <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3">UART_DATABIT_T</a> databits = <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a196b716ca31d23301c1059b53ac35f25">UART_DATABIT_8</a>,</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                          <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04b">UART_STOPBIT_T</a> stopbits = <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04ba6351eeac6c2e865ed9019323e2491907">UART_STOPBIT_1</a>,</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                          <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1">UART_FITO_LEVEL_T</a> level=<a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1aec8c4b69719ee6b1dc43cf6ccdd999de">UART_FIFO_TRGLEV0</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a0c80ea521e310305579e787f21a55233">   98</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a0c80ea521e310305579e787f21a55233">settings</a>(uint32_t baudrate,</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;              <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40">UART_PARITY_T</a> parity = <a class="code" href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a77e567bbd57497e51b0161ed1cd855a4">UART_PARITY_NONE</a>,</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;              <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3">UART_DATABIT_T</a> databits = <a class="code" href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a196b716ca31d23301c1059b53ac35f25">UART_DATABIT_8</a>,</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;              <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04b">UART_STOPBIT_T</a> stopbits = <a class="code" href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04ba6351eeac6c2e865ed9019323e2491907">UART_STOPBIT_1</a>,</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;              <a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1">UART_FITO_LEVEL_T</a> level=<a class="code" href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1aec8c4b69719ee6b1dc43cf6ccdd999de">UART_FIFO_TRGLEV0</a>) {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#aff7c822bada51065ad52542fb9515be6">enable</a>(baudrate, parity, databits, stopbits, level);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a0748723f610ddcfdc34286dbbfbd4917">readable</a>();</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../d8/d1d/class_c_serial.html#ac59cfe80216e1fb7eb479017f0bb8e7f">writeable</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../d4/d16/class_c_stream.html#af56764abe8954430eede10e253f8994f">read</a>(<span class="keywordtype">void</span> *buf, <span class="keywordtype">int</span> len, <span class="keywordtype">bool</span> block=<span class="keyword">true</span>);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../d8/d1d/class_c_serial.html#adef6d3e77843c65617b7cb555c2f8732">write</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *buf, <span class="keywordtype">int</span> len, <span class="keywordtype">bool</span> block=<span class="keyword">true</span>);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a68aecf6351423ae0e8791870c9e694bf">flush</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="comment">// for Arduino user</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a130edee149575f50f62013180a1b5bef">  135</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a130edee149575f50f62013180a1b5bef">begin</a>(uint32_t speed) {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <a class="code" href="../../d8/d1d/class_c_serial.html#aff7c822bada51065ad52542fb9515be6">enable</a>(speed);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="comment">// for Arduino user</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a21d6a27113d6370eb3a69c26b28b232a">  140</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a21d6a27113d6370eb3a69c26b28b232a">end</a>() {</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="comment">// nothing</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#a5c142221c0841e7c961e962c45bd2db7">  147</a></span>&#160;    <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a5c142221c0841e7c961e962c45bd2db7">available</a>() {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a0748723f610ddcfdc34286dbbfbd4917">readable</a>();</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    }</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="../../d8/d1d/class_c_serial.html#ae7c133c4586cd5ca729cd026f813a8a0">  153</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="../../d8/d1d/class_c_serial.html#ae7c133c4586cd5ca729cd026f813a8a0">isConnected</a>() {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/d1d/class_c_serial.html#a9dc5498e6cae5a2d0d12cb57fc6ee335">handshaking</a>();</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="../../d8/d1d/class_c_serial.html">CSerial</a>();</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> onUartRecv();</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> onUartSend();</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> onLineStatus(uint32_t reg);    <span class="comment">// bitwise line status</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> onCharTimeout();</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="../../d0/d06/class_c_semaphore.html">CSemaphore</a>  m_semIrq;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <a class="code" href="../../db/d53/structfifo__t.html">FIFO_T</a>   m_txFifo;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <a class="code" href="../../db/d53/structfifo__t.html">FIFO_T</a>   m_rxFifo;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <a class="code" href="../../d0/d06/class_c_semaphore.html">CSemaphore</a>  m_semRx;    <span class="comment">// rx fifo buffer semaphore</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <a class="code" href="../../d0/d06/class_c_semaphore.html">CSemaphore</a>  m_semTx;    <span class="comment">// tx fifo buffer semaphore</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    xHandle  m_handle;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    uint32_t m_flag;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;};</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="comment">// UART Line Status Define (bit position)</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="comment">// for CSerial::onLineStatus()</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="comment">// Refer to : Page 236 of UM10462</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#define UART_LSR_RDR    (1&lt;&lt;0)      // Receiver Data Ready:</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_OE     (1&lt;&lt;1)      // Overrun Error</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_PE     (1&lt;&lt;2)      // Parity Error</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_FE     (1&lt;&lt;3)      // Framing Error</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_BI     (1&lt;&lt;4)      // Break Interrupt</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_THRE   (1&lt;&lt;5)      // Transmitter Holding</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_TEMT   (1&lt;&lt;6)      // Transmitter Empty</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_RXFE   (1&lt;&lt;7)      // Error in RX FIFO</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define UART_LSR_TXERR  (1&lt;&lt;8)      // Tx Error</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* STREAM_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_c_serial_html_a5c142221c0841e7c961e962c45bd2db7"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a5c142221c0841e7c961e962c45bd2db7">CSerial::available</a></div><div class="ttdeci">virtual int available()</div><div class="ttdef"><b>Definition:</b> serial.h:147</div></div>
<div class="ttc" id="class_c_serial_html_ad38b0926868c6cfabb59e2da94f1cf40a20c9bc3b3fa95b78898159cd2680e007"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a20c9bc3b3fa95b78898159cd2680e007">CSerial::UART_PARITY_SP_1</a></div><div class="ttdef"><b>Definition:</b> serial.h:45</div></div>
<div class="ttc" id="class_c_serial_html_a0c80ea521e310305579e787f21a55233"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a0c80ea521e310305579e787f21a55233">CSerial::settings</a></div><div class="ttdeci">void settings(uint32_t baudrate, UART_PARITY_T parity=UART_PARITY_NONE, UART_DATABIT_T databits=UART_DATABIT_8, UART_STOPBIT_T stopbits=UART_STOPBIT_1, UART_FITO_LEVEL_T level=UART_FIFO_TRGLEV0)</div><div class="ttdef"><b>Definition:</b> serial.h:98</div></div>
<div class="ttc" id="class_c_serial_html_af02af389f5596b7b40cf0d2ece57b04ba6351eeac6c2e865ed9019323e2491907"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04ba6351eeac6c2e865ed9019323e2491907">CSerial::UART_STOPBIT_1</a></div><div class="ttdef"><b>Definition:</b> serial.h:63</div></div>
<div class="ttc" id="class_c_semaphore_html"><div class="ttname"><a href="../../d0/d06/class_c_semaphore.html">CSemaphore</a></div><div class="ttdef"><b>Definition:</b> semaphore.h:33</div></div>
<div class="ttc" id="class_c_stream_html"><div class="ttname"><a href="../../d4/d16/class_c_stream.html">CStream</a></div><div class="ttdef"><b>Definition:</b> stream.h:27</div></div>
<div class="ttc" id="class_c_serial_html_ad528b7355f527eabc415f6a8017745f4"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad528b7355f527eabc415f6a8017745f4">CSerial::CSerial</a></div><div class="ttdeci">CSerial(size_t fifo_size=32)</div></div>
<div class="ttc" id="class_c_serial_html_af02af389f5596b7b40cf0d2ece57b04bafe7ff299f68959471436234643298e71"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04bafe7ff299f68959471436234643298e71">CSerial::UART_STOPBIT_2</a></div><div class="ttdef"><b>Definition:</b> serial.h:64</div></div>
<div class="ttc" id="class_c_serial_html_a767bb157f0f469eb5bf5c99b8ada42f1"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1">CSerial::UART_FITO_LEVEL_T</a></div><div class="ttdeci">UART_FITO_LEVEL_T</div><div class="ttdoc">RX FIFO Trigger Level type definitions. </div><div class="ttdef"><b>Definition:</b> serial.h:71</div></div>
<div class="ttc" id="class_c_serial_html_a767bb157f0f469eb5bf5c99b8ada42f1a3ca31e41f3d74e387b0ff625a927bcf4"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a3ca31e41f3d74e387b0ff625a927bcf4">CSerial::UART_FIFO_TRGLEV2</a></div><div class="ttdef"><b>Definition:</b> serial.h:74</div></div>
<div class="ttc" id="class_c_serial_html_adef6d3e77843c65617b7cb555c2f8732"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#adef6d3e77843c65617b7cb555c2f8732">CSerial::write</a></div><div class="ttdeci">virtual int write(const void *buf, int len, bool block=true)</div></div>
<div class="ttc" id="class_c_serial_html_ad38b0926868c6cfabb59e2da94f1cf40aa157a4ef710e04651e3aaf61a4d96ad9"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40aa157a4ef710e04651e3aaf61a4d96ad9">CSerial::UART_PARITY_ODD</a></div><div class="ttdef"><b>Definition:</b> serial.h:43</div></div>
<div class="ttc" id="class_c_serial_html_a21d6a27113d6370eb3a69c26b28b232a"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a21d6a27113d6370eb3a69c26b28b232a">CSerial::end</a></div><div class="ttdeci">void end()</div><div class="ttdef"><b>Definition:</b> serial.h:140</div></div>
<div class="ttc" id="class_c_serial_html_a628c8c9be04f0315c4dae70ce8ccc5b3a7ac317a766becd83f58a2daa007fed1e"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a7ac317a766becd83f58a2daa007fed1e">CSerial::UART_DATABIT_5</a></div><div class="ttdef"><b>Definition:</b> serial.h:53</div></div>
<div class="ttc" id="class_c_serial_html_a68aecf6351423ae0e8791870c9e694bf"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a68aecf6351423ae0e8791870c9e694bf">CSerial::flush</a></div><div class="ttdeci">virtual void flush()</div></div>
<div class="ttc" id="class_c_serial_html_a130edee149575f50f62013180a1b5bef"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a130edee149575f50f62013180a1b5bef">CSerial::begin</a></div><div class="ttdeci">void begin(uint32_t speed)</div><div class="ttdef"><b>Definition:</b> serial.h:135</div></div>
<div class="ttc" id="class_c_serial_html_ad38b0926868c6cfabb59e2da94f1cf40a660aab6ba15f9c94cc9963ff226a77eb"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a660aab6ba15f9c94cc9963ff226a77eb">CSerial::UART_PARITY_SP_0</a></div><div class="ttdef"><b>Definition:</b> serial.h:46</div></div>
<div class="ttc" id="class_c_serial_html_a628c8c9be04f0315c4dae70ce8ccc5b3abf533a46435efaddb8e38b9b9fe53eff"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3abf533a46435efaddb8e38b9b9fe53eff">CSerial::UART_DATABIT_7</a></div><div class="ttdef"><b>Definition:</b> serial.h:55</div></div>
<div class="ttc" id="class_c_serial_html_a628c8c9be04f0315c4dae70ce8ccc5b3a6c31f7e06c7a6779b6d72d37aba52fb1"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a6c31f7e06c7a6779b6d72d37aba52fb1">CSerial::UART_DATABIT_6</a></div><div class="ttdef"><b>Definition:</b> serial.h:54</div></div>
<div class="ttc" id="class_c_serial_html_ad38b0926868c6cfabb59e2da94f1cf40a4b7452e8ef848287eca86b7ea4411e65"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a4b7452e8ef848287eca86b7ea4411e65">CSerial::UART_PARITY_EVEN</a></div><div class="ttdef"><b>Definition:</b> serial.h:44</div></div>
<div class="ttc" id="class_c_serial_html_ac59cfe80216e1fb7eb479017f0bb8e7f"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ac59cfe80216e1fb7eb479017f0bb8e7f">CSerial::writeable</a></div><div class="ttdeci">virtual int writeable()</div></div>
<div class="ttc" id="class_c_serial_html_a0748723f610ddcfdc34286dbbfbd4917"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a0748723f610ddcfdc34286dbbfbd4917">CSerial::readable</a></div><div class="ttdeci">virtual int readable()</div></div>
<div class="ttc" id="class_c_serial_html_af02af389f5596b7b40cf0d2ece57b04b"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#af02af389f5596b7b40cf0d2ece57b04b">CSerial::UART_STOPBIT_T</a></div><div class="ttdeci">UART_STOPBIT_T</div><div class="ttdoc">UART Stop bit type definitions. </div><div class="ttdef"><b>Definition:</b> serial.h:62</div></div>
<div class="ttc" id="class_c_serial_html_a628c8c9be04f0315c4dae70ce8ccc5b3"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3">CSerial::UART_DATABIT_T</a></div><div class="ttdeci">UART_DATABIT_T</div><div class="ttdoc">UART Databit type definitions. </div><div class="ttdef"><b>Definition:</b> serial.h:52</div></div>
<div class="ttc" id="class_c_serial_html_ad38b0926868c6cfabb59e2da94f1cf40"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40">CSerial::UART_PARITY_T</a></div><div class="ttdeci">UART_PARITY_T</div><div class="ttdoc">UART Parity type definitions. </div><div class="ttdef"><b>Definition:</b> serial.h:41</div></div>
<div class="ttc" id="class_c_serial_html_a767bb157f0f469eb5bf5c99b8ada42f1a6893ab299c8d6be2e17efb39cd05e1a1"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a6893ab299c8d6be2e17efb39cd05e1a1">CSerial::UART_FIFO_TRGLEV3</a></div><div class="ttdef"><b>Definition:</b> serial.h:75</div></div>
<div class="ttc" id="class_c_serial_html_a9dc5498e6cae5a2d0d12cb57fc6ee335"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a9dc5498e6cae5a2d0d12cb57fc6ee335">CSerial::handshaking</a></div><div class="ttdeci">void handshaking()</div></div>
<div class="ttc" id="class_c_serial_html"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html">CSerial</a></div><div class="ttdef"><b>Definition:</b> serial.h:36</div></div>
<div class="ttc" id="class_c_serial_html_a767bb157f0f469eb5bf5c99b8ada42f1aec8c4b69719ee6b1dc43cf6ccdd999de"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1aec8c4b69719ee6b1dc43cf6ccdd999de">CSerial::UART_FIFO_TRGLEV0</a></div><div class="ttdef"><b>Definition:</b> serial.h:72</div></div>
<div class="ttc" id="structfifo__t_html"><div class="ttname"><a href="../../db/d53/structfifo__t.html">fifo_t</a></div><div class="ttdef"><b>Definition:</b> fifo.h:10</div></div>
<div class="ttc" id="class_c_stream_html_af56764abe8954430eede10e253f8994f"><div class="ttname"><a href="../../d4/d16/class_c_stream.html#af56764abe8954430eede10e253f8994f">CStream::read</a></div><div class="ttdeci">virtual uint8_t read()</div></div>
<div class="ttc" id="class_c_serial_html_a767bb157f0f469eb5bf5c99b8ada42f1a2d29eb800e28d845f00b9fd5df1b955c"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a767bb157f0f469eb5bf5c99b8ada42f1a2d29eb800e28d845f00b9fd5df1b955c">CSerial::UART_FIFO_TRGLEV1</a></div><div class="ttdef"><b>Definition:</b> serial.h:73</div></div>
<div class="ttc" id="class_c_serial_html_a628c8c9be04f0315c4dae70ce8ccc5b3a196b716ca31d23301c1059b53ac35f25"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#a628c8c9be04f0315c4dae70ce8ccc5b3a196b716ca31d23301c1059b53ac35f25">CSerial::UART_DATABIT_8</a></div><div class="ttdef"><b>Definition:</b> serial.h:56</div></div>
<div class="ttc" id="class_c_serial_html_aff7c822bada51065ad52542fb9515be6"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#aff7c822bada51065ad52542fb9515be6">CSerial::enable</a></div><div class="ttdeci">virtual void enable(uint32_t baudrate, UART_PARITY_T parity=UART_PARITY_NONE, UART_DATABIT_T databits=UART_DATABIT_8, UART_STOPBIT_T stopbits=UART_STOPBIT_1, UART_FITO_LEVEL_T level=UART_FIFO_TRGLEV0)</div></div>
<div class="ttc" id="class_c_serial_html_ad38b0926868c6cfabb59e2da94f1cf40a77e567bbd57497e51b0161ed1cd855a4"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ad38b0926868c6cfabb59e2da94f1cf40a77e567bbd57497e51b0161ed1cd855a4">CSerial::UART_PARITY_NONE</a></div><div class="ttdef"><b>Definition:</b> serial.h:42</div></div>
<div class="ttc" id="class_c_serial_html_ae7c133c4586cd5ca729cd026f813a8a0"><div class="ttname"><a href="../../d8/d1d/class_c_serial.html#ae7c133c4586cd5ca729cd026f813a8a0">CSerial::isConnected</a></div><div class="ttdeci">virtual bool isConnected()</div><div class="ttdef"><b>Definition:</b> serial.h:153</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d9ab3e09413249e340719d1c246acc66.html">Jason Project</a></li><li class="navelem"><a class="el" href="../../dir_e60b0d0338763df7a227cbecf5ac6106.html">Firmware</a></li><li class="navelem"><a class="el" href="../../dir_c8ef7bdfc8622ceb56fdbfff8f44a6b4.html">lpcxpresso</a></li><li class="navelem"><a class="el" href="../../dir_bc2544560b94a5512f672a61310393b1.html">ucxpresso.lite</a></li><li class="navelem"><a class="el" href="../../dir_89b485e3174b4ad30c1cd4b50a79dec9.html">uCXpresso.BLE</a></li><li class="navelem"><a class="el" href="../../dir_ef35519cefd621f663612ebad34cbfc9.html">inc</a></li><li class="navelem"><a class="el" href="../../dir_23b8956a4518e3beec6402c1bb795b19.html">class</a></li><li class="navelem"><b>serial.h</b></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
